<?php define("pic_prefix", "http://zxjbw.hzjgfy.gov.cn/Manage/Upload/Photo/"); ?>
<link rel="stylesheet" href="resources/weui/dist/style/weui.min.css"/>
<div id="totalcount" style="display: none"><?php echo $totalcount ?></div>
<div id="pic_prefix" style="display: none"><?php echo pic_prefix ?></div>
<div style="background-color: white">
	<div id="canas" style="height: 100px;"></div>
	<div class="weui_cells" id="content-cell" style="margin-top: 0px;">
		<?php foreach($exposures as $item ):?>
			<a class="weui_cell exposes" href="index.php/Exposure/detail/<?php echo $item['ID']?>">
				<div class="weui_cell_hd"><img src="<?php echo pic_prefix.$item['Pic'] ?>" alt="" style="width:35px;margin-right:5px;display:block"></div>
				<div class="weui_cell_bd weui_cell_primary" style="padding-left: 15px">
					<p><?php echo $item['CauseNo'] ?></p>
				</div>
				<div class="weui_cell_ft"><?php echo $item['RealName'] ?></div>
			</a>

		<?php endforeach;?>
	</div>
	<div class="weui_cells" style="display: none" id="loadingInfo">
		<div  class="weui_cell">
			<div class="weui_cell_bd " >
				<p>数据加载中</p>
			</div>
		</div>
	</div>
</div>
<script src="resources/js/exposure_list.js"></script>
<script>
	$(document).ready(function () {
		var list = [];
		var exposesdiv=$(this).find('.exposes');
		exposesdiv.each(function(){
			var hrefs=$(this).attr('href');
			var imgs=$(this).find('img');
			var imghref=imgs.attr('src');
			var element={};
			element.height=125;
			element.width=102;
			element.content='<a href="'+hrefs+'">'+'<img src="'+imghref+'" style="height: 100px;width: auto"></a>';
			list.push(element);
		});
		islider = new iSlider({
			data: list,
			dom: document.getElementById("canas"),
			isVertical: false,
			isLooping: true,
			isDebug: true,
			isAutoplay: true,
			animateType: '3d'
		});
	});


//	var list = [{
//		height: 475,
//		width: 400,
//		content: '<a href="www.baidu.com"><img src="resources/image/city/hangzhou.jpg"></a>',
//	},{
//		height: 527,
//		width: 400,
//		content: "resources/image/city/jinhua.jpg",
//	},{
//		height: 374,
//		width: 600,
//		content:"resources/image/city/lishui.jpg"
//	}];
//	islider = new iSlider({
//		data: list,
//		dom: document.getElementById("canas"),
//		isVertical: false,
//		isLooping: true,
//		isDebug: true,
//		isAutoplay: true,
//		animateType: '3d'
//	});
</script>